import axios from '@/utils/request'
// import store from '@/store/index'
/**
 *
 * @param {Number} mobile
 * @param {Number} code
 */
export const userLogin = (mobile, code) => {
  return axios({
    method: 'POST',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
}

export function getUserInfo() {
  // 获取token
  // const token = store.state.user.token.token
  return axios({
    url: '/v1_0/user/profile'
    // headers: {
    //   Authorization: 'Bearer ' + token
    // }
  })
}
